package javango.contrib.compat.forms.hibernate;


import javango.contrib.compat.Static;
import javango.contrib.hibernate.HibernateUtil;
import javango.forms.fields.FieldFactory;

public class ModelForm extends javango.contrib.hibernate.ModelForm {

	public ModelForm() {
		super(
			Static.getInjector().getInstance(FieldFactory.class), 
			Static.getInjector().getInstance(HibernateUtil.class),
			Static.getInjector().getInstance(javango.db.Managers.class)
		);		
	}
	
	public ModelForm(Class clazz) {
		this();
		setModel(clazz);
	}
	
	public ModelForm(Object bean) {
		this();
		setInitial(bean);
	} 
	
	
}
